﻿@model PasswordManagerMVC.Models.ItemModel

@{
    ViewBag.Title = "AddNew";
}

<h2>AddNew</h2>

@Scripts.Render("~/bundles/jqueryval")

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Add New</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Key)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Key)
            @Html.ValidationMessageFor(model => model.Key)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tag1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tag1)
            @Html.ValidationMessageFor(model => model.Tag1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tag2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tag2)
            @Html.ValidationMessageFor(model => model.Tag2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tag3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tag3)
            @Html.ValidationMessageFor(model => model.Tag3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tag4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tag4)
            @Html.ValidationMessageFor(model => model.Tag4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tag5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tag5)
            @Html.ValidationMessageFor(model => model.Tag5)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}